package io.renren.auth.remote;

import io.renren.auth.factory.RemoteUserFallbackFactory;
import io.renren.common.form.SysLoginForm;
import io.renren.common.utils.ServiceNameConstants;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.Map;

/**
 * 用户服务
 * 
 * @author ruoyi
 */
@FeignClient(contextId = "remoteUserService", value = ServiceNameConstants.SYSTEM_SERVICE, fallbackFactory = RemoteUserFallbackFactory.class)
public interface RemoteUserService
{
    /**
     * 通过用户名查询用户信息
     *
     * @return 结果
     */
    @PostMapping(value = "/sys/login")
    public Map<String, Object> login(@RequestBody SysLoginForm form);


}
